package org.zfes.snowier.zbss.xzy.mo.dtos.sys;

import java.io.Serializable;
import java.util.Date;

import org.zfes.snowier.zbss.xzy.mo.dtos.IBaseMDto;
import org.zfes.snowier.zbss.xzy.mo.dtos.jvm.detail.SysJvmInfoDto;


/**
 * CPU相关信息
 * 
 */
public class SysCpuDto  extends IBaseMDto{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//所属部署拓扑
	private String devicesn;
	//实例key
	private String inskey;
	//实例秒数
	private String insremark;
	
	
	private Byte st=1;
	private Date ti;
	private String message;
	/**
	 * 核心数
	 */
	private int cnum;


	/**
	 * CPU系统使用率
	 */
	private Double sys;

	/**
	 * CPU用户使用率
	 */
	private Double used;

	/**
	 * CPU当前等待率
	 */
	private Double wait;

	/**
	 * CPU当前空闲率
	 */
	private Double free;

	public int getCnum() {
		return cnum;
	}

	public SysCpuDto setCnum(int cnum) {
		this.cnum = cnum;
		return this;
	}

	public Double getSys() {
		return sys;
	}

	public SysCpuDto setSys(Double sys) {
		this.sys = sys;
		return this;
	}

	public Double getUsed() {
		return used;
	}

	public SysCpuDto setUsed(Double used) {
		this.used = used;
		return this;
	}

	public Double getWait() {
		return wait;
	}

	public SysCpuDto setWait(Double wait) {
		this.wait = wait;
		return this;
	}

	public Double getFree() {
		return free;
	}

	public SysCpuDto setFree(Double free) {
		this.free = free;
		return this;
	}

	public String getDevicesn() {
		return devicesn;
	}

	public SysCpuDto setDevicesn(String devicesn) {
		this.devicesn = devicesn;
		return this;
	}

	public Byte getSt() {
		return st;
	}

	public SysCpuDto setSt(Byte st) {
		this.st = st;
		return this;
	}

	public Date getTi() {
		return ti;
	}

	public SysCpuDto setTi(Date ti) {
		this.ti = ti;
		return this;
	}

	public String getMessage() {
		return message;
	}

	public SysCpuDto setMessage(String message) {
		this.message = message;
		return this;
	}
	public String getInskey() {
		return inskey;
	}

	public SysCpuDto setInskey(String inskey) {
		this.inskey = inskey;
		return this;
	}

	public String getInsremark() {
		return insremark;
	}

	public SysCpuDto setInsremark(String insremark) {
		this.insremark = insremark;
		return this;
	}

	@Override
	public String toString() {
		return "SysCpuDto [devicesn=" + devicesn + ", inskey=" + inskey + ", insremark=" + insremark + ", st=" + st
				+ ", ti=" + ti + ", message=" + message + ", cnum=" + cnum + ", sys=" + sys + ", used=" + used
				+ ", wait=" + wait + ", free=" + free + "]";
	}
	








//	public int getCnum() {
//		return cnum;
//	}
//
//	public SysCpu setCnum(int cnum) {
//		this.cnum = cnum;
//		return this;
//	}
//
//	public String getTotal() {
//		return String.valueOf(Arith.round(Arith.mul(Double.valueOf(total), 100), 2));
//	}
//
//	public SysCpu setTotal(String total) {
//		this.total = total;
//		return this;
//	}
//
//	public String getSys() {
//		return String.valueOf(Arith.round(Arith.mul(Double.valueOf(sys) / Double.valueOf(total), 100), 2));
//	}
//
//	public SysCpu setSys(String sys) {
//		this.sys = sys;
//		return this;
//	}
//
//	public String getUsed() {
//		return String.valueOf(Arith.round(Arith.mul(Double.valueOf(used) /Double.valueOf(total) , 100), 2));
//	}
//
//	public SysCpu setUsed(String used) {
//		this.used = used;
//		return this;
//	}
//
//	public String getWait() {
//		return String.valueOf(Arith.round(Arith.mul(Double.valueOf(wait) /Double.valueOf(total) , 100), 2));
//	}
//
//	public SysCpu setWait(String wait) {
//		this.wait = wait;
//		return this;
//	}
//
//	public String getFree() {
//		return String.valueOf(Arith.round(Arith.mul(Double.valueOf(free) /Double.valueOf(total) , 100), 2));
//	}
//
//	public SysCpu setFree(String free) {
//		this.free = free;
//		return this;
//	}



}
